package com.yunfei.yunhetong.dictionary.bo;
import com.yunfei.yunhetong.dictionary.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename TDICTIONARY
*@author zhengyunfei
*@createDate Mon Jul 29 09:50:52 CST 2019
*/ 
public class DictionaryBo implements java.io.Serializable{
	private String CSysname;
	private String LKeyno;
	private String CKeyvalue;
	private String CCaption;
	private String CModify;
	private String CMemo;
	private String CEnglish;
	private String LOrder;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCSysname(String CSysname){
		this.CSysname=CSysname;
	}
	public String getCSysname(){
		return CSysname;
	}
	public void setLKeyno(String LKeyno){
		this.LKeyno=LKeyno;
	}
	public String getLKeyno(){
		return LKeyno;
	}
	public void setCKeyvalue(String CKeyvalue){
		this.CKeyvalue=CKeyvalue;
	}
	public String getCKeyvalue(){
		return CKeyvalue;
	}
	public void setCCaption(String CCaption){
		this.CCaption=CCaption;
	}
	public String getCCaption(){
		return CCaption;
	}
	public void setCModify(String CModify){
		this.CModify=CModify;
	}
	public String getCModify(){
		return CModify;
	}
	public void setCMemo(String CMemo){
		this.CMemo=CMemo;
	}
	public String getCMemo(){
		return CMemo;
	}
	public void setCEnglish(String CEnglish){
		this.CEnglish=CEnglish;
	}
	public String getCEnglish(){
		return CEnglish;
	}
	public void setLOrder(String LOrder){
		this.LOrder=LOrder;
	}
	public String getLOrder(){
		return LOrder;
	}
	public static DictionaryEntity boToEntity(DictionaryBo bo){
		DictionaryEntity entity=new DictionaryEntity();
		entity.setCSysname(bo.getCSysname());
		entity.setLKeyno(bo.getLKeyno());
		entity.setCKeyvalue(bo.getCKeyvalue());
		entity.setCCaption(bo.getCCaption());
		entity.setCModify(bo.getCModify());
		entity.setCMemo(bo.getCMemo());
		entity.setCEnglish(bo.getCEnglish());
		entity.setLOrder(bo.getLOrder());
		return entity;
	}
	public static DictionaryBo entityToBo(DictionaryEntity bo){
		DictionaryBo entity=new DictionaryBo();
		entity.setCSysname(bo.getCSysname());
		entity.setLKeyno(bo.getLKeyno());
		entity.setCKeyvalue(bo.getCKeyvalue());
		entity.setCCaption(bo.getCCaption());
		entity.setCModify(bo.getCModify());
		entity.setCMemo(bo.getCMemo());
		entity.setCEnglish(bo.getCEnglish());
		entity.setLOrder(bo.getLOrder());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("CSysname")){
					result="C_SYSNAME";
				}
				if(field.equals("LKeyno")){
					result="L_KEYNO";
				}
				if(field.equals("CKeyvalue")){
					result="C_KEYVALUE";
				}
				if(field.equals("CCaption")){
					result="C_CAPTION";
				}
				if(field.equals("CModify")){
					result="C_MODIFY";
				}
				if(field.equals("CMemo")){
					result="C_MEMO";
				}
				if(field.equals("CEnglish")){
					result="C_ENGLISH";
				}
				if(field.equals("LOrder")){
					result="L_ORDER";
				}
		}
		return result;
	}
}

